package Filter;

import java.util.LinkedList;
import java.util.List;

public class SourCriteria implements Criteria{
    @Override
    public List<Apple> meetCriteria(List<Apple> apples) {
        List<Apple> ans=new LinkedList<>();
        for(Apple apple:apples)
        {
            if(apple.taste.equals("sour"))
                ans.add(apple);
        }
        return ans;
    }
}
